package com.syt.mina.filter.codec.flex;



import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;

import com.syt.mina.filter.codec.flex.AMF3Decoder;
import com.syt.mina.filter.codec.flex.AMF3Encoder;


public class AMF3CodecFactory implements ProtocolCodecFactory {
	private ProtocolEncoder encoder;
    private ProtocolDecoder decoder;

	public AMF3CodecFactory() {
		// TODO Auto-generated constructor stub
		 encoder = new AMF3Encoder();
         decoder = new AMF3Decoder();
	}

	public ProtocolDecoder getDecoder(IoSession session) throws Exception {
		// TODO Auto-generated method stub
		return decoder;
	}

	public ProtocolEncoder getEncoder(IoSession session) throws Exception {
		// TODO Auto-generated method stub
		return encoder;
	}

}
